Visual Basic (Declaration) | |
---|---|
Public Function GetEnumerator() As IEnumerator(Of T) |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As ThreadSafeList(Of T) Dim value As IEnumerator(Of T) value = instance.GetEnumerator() |
C# | |
---|---|
public IEnumerator<T> GetEnumerator() |
C++/CLI | |
---|---|
public: IEnumerator<T^>^ GetEnumerator(); |
Return Value
A IEnumerator that can be used to iterate through the collection.Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7